Skip to content

Conversation

henrygr
Copy link
Member

@henrygr henrygr commented Oct 27, 2026

Summary

  • Add Review model to the Prisma schema with a migration (20261027200349_add_reviews)
  • Expose reviews relation on Venue and a Review object type in the GraphQL schema
  • Add createReview mutation accepting venueId, username, body and rating
  • Register the Pothos with-input plugin (value import + runtime registration) so t.input.* works
  • Fix the resolver to use the correct (query, parent, args) signature, pass ...query and return the created review
  • Seed 9 mock reviews across all seeded venues, and clear reviews on reseed

Testing

  • Verified the mutation end-to-end against a running server (introspected MutationCreateReviewInput, created a review, read it back through venue.reviews)
  • pnpm lint, pnpm run check and backend typecheck all pass

@henrygr henrygr requested a review from a team as a code owner October 27, 2026 20:29
@henrygr henrygr self-assigned this Oct 27, 2026
@henrygr henrygr merged commit ce288e7 into main Oct 27, 2026
1 check passed
@henrygr henrygr deleted the add-reviews-backend branch October 27, 2026 20:39
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants